package com.dd.keel.core.common.utils;

import java.util.regex.Pattern;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class RegexUtil {
	
	final static private Logger LOGGER = LoggerFactory.getLogger(RegexUtil.class);
	
	public static boolean match(String regexExpression,String targetExpression)
	{
		LOGGER.trace( "regexExpression={},targetExpression={}", regexExpression, targetExpression );
		/*Pattern p = Pattern.compile(regexExpression);
		Matcher m = p.matcher(targetExpression);
		return m.matches();*/
		return Pattern.matches(regexExpression, targetExpression);
	}
	
}
